package routers

import (
	"c111/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//beego.Router("/register", &controllers.UseController{}, "*:Login")
	beego.Router("/login", &controllers.UseController{}, "*:Login")
	beego.Router("/add", &controllers.ShopController{}, "*:Add")
	beego.Router("/list", &controllers.ShopController{}, "*:List")
	beego.Router("/del", &controllers.ShopController{}, "*:Del")
	beego.Router("/detail", &controllers.ShopController{}, "*:Detail")
}
